const {
	jsToCallApp
} = require("./uniapp-callApp-1.1.0");

function openAppFunction(type, otherData) {
	const useTimeOut = setTimeout(() => {
		jsToCallApp({
				type: type,
				...otherData
			},
			(backData) => {
				console.log(type, backData)
				if (-1 !== backData && backData) {
					showContentDom.innerHTML = backData;
				}
			},
		)
		clearTimeout(useTimeOut);
	}, 300);
}

//卡包授权
export function cardPacksOrganizeStays() {
	const code = ''
	openAppFunction('toKbFillUserInfo', {
		authCode: code,
	});
}